<%@ Reference Control="~/Controls/GroupBlogTabs.ascx" %>
<%@ Reference Control="~/Controls/UserMsgTabs.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.send_message" ValidateRequest="false" CodeFile="send_message.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<%@ Register tagprefix="UserMsgTabs" Tagname="UserMsgTabs" Src="Controls/UserMsgTabs.ascx" %>
<%@ Register tagprefix="GroupBlogTabs" Tagname="GroupBlogTabs" Src="Controls/GroupBlogTabs.ascx" %>
<form id="Form1" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr>
			<td colspan="3">
				<table cellspacing="0" cellpadding="0" width="100%" border="0" class="page_title">
					<tr>
						<td><asp:literal id="litMainPageTitle" runat=server>Send Message</asp:literal></td>
						<td align="right"><asp:hyperlink id="hlBackToGroup" runat="server"  cssclass="white_link"></asp:hyperlink></td>
					</tr>
				</table>
			</td>
		</tr>		
		<tr>
			<td valign="top" height="100%" class="main_table_border">
				<div class="content">
					<table cellSpacing="0" cellPadding="0" border="0" width="100%">
						<usermsgtabs:usermsgtabs id="ucTabs" runat="server"></usermsgtabs:usermsgtabs>
						<groupblogtabs:groupblogtabs id="grpBlogTabs" runat="server"></groupblogtabs:groupblogtabs>
						<tr id="trMessagePost" runat="server">
							<td align="left" valign="top">
								<table cellSpacing="0" cellPadding="0" border="0" class="main_text_opposite_form" width="100%">
									<tr>
										<td class="small" colSpan="2" height="15">&nbsp;</td>
									</tr>
									<!--<tr>
										<td align="right" colSpan="2">
											<asp:HyperLink id="hlBackToInbox" NavigateURL="../messages_inbox.aspx" runat=server cssclass="main_text_bold"><b>Return to Inbox</b></asp:Hyperlink>&nbsp;&nbsp;</td>
									</tr>-->
									<tr>
										<td class="small" id="error" vAlign="top" align="left" colSpan="2" height="1"><asp:validationsummary id="ValidationSummary1" runat="server" Height="38px" ForeColor="#F04C03" DisplayMode="List"
												CssClass="val_summary"></asp:validationsummary>
										</td>
									</tr>
									<tr>
										<td colspan="2" class="small">
											<asp:Label id="lblMessageSent" runat="server" CssClass="main_text_err" Visible="False">Your message has been sent</asp:Label>
											<asp:label id="lblSendYourselfMessage" runat="server" CssClass="main_text_opposite_bold" Visible="False">You cannot send a message to yourself! </asp:label>
										</td>
									</tr>
									<tr>
										<td width="100">
											<b><asp:label id="lblTo" runat="server">To</asp:label></b></td>
										<td vAlign="top"><asp:dropdownlist id="ddlDirectFriends" runat="server" CssClass="mail_field" Visible="False"></asp:dropdownlist>
											<asp:Table id=tblToUsers runat="server">
											<asp:TableRow>
											<asp:TableCell valign="top"><asp:hyperlink id="hlToName" runat="server" cssclass="main_text_bold" visible="False" font-bold="True"></asp:hyperlink><br><img height="4" src="images/spacer.gif" width="1"><br>
																		<asp:hyperlink id="hlToPhoto" runat="server" cssclass="small_image" visible="False"></asp:hyperlink></asp:TableCell>
											<asp:tablecell valign="top"><asp:hyperlink id=hlTo2Name runat="server" cssclass="main_text_bold" visible="False" font-bold="True"></asp:hyperlink><br><img height="4" src="images/spacer.gif" width="1"><br>
												<asp:hyperlink id=hlTo2Photo runat="server" cssclass="small_image" visible="False"></asp:hyperlink></asp:tablecell>
											</asp:TableRow></asp:Table></td>
									<tr>
										<td><asp:label id="lblSubject" runat="server">Subject</asp:label></td>
										<td vAlign="top"><asp:textbox id="txtSubject_bulletin" runat="server" CssClass="mail_field" MaxLength="150" width="400px"></asp:textbox>
											<asp:requiredfieldvalidator id="rvSubject_bulletin" runat="server" Display="None" ControlToValidate="txtSubject_bulletin"
												ErrorMessage="Please fill in field Subject"></asp:requiredfieldvalidator></td>
									</tr>
									<tr>
										<td><asp:label id="lblMessage" runat="server">Message</asp:label></td>
										<td vAlign="top"><asp:textbox id="txtMessage_bulletin" runat="server" CssClass="scrollbar" MaxLength="10000" Width="400px"
												Rows="8" TextMode="MultiLine" height="200px"></asp:textbox>
										<asp:requiredfieldvalidator id="rvMessage_bulletin" runat="server" Display="None" ControlToValidate="txtMessage_bulletin"
												ErrorMessage="Please fill in field Message"></asp:requiredfieldvalidator></td>
									</tr>
									<tr>
										<td class="small" colSpan="2" height="10">&nbsp;</td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td class="small" align="left" height="21"><asp:button id="btn_send_bulletin" runat="server" CssClass="btn" Text="  send "  onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btn_send_bulletin_Click"></asp:button></td>
									</tr>
									<tr>
										<td class="small" colSpan="2" height="10">&nbsp;</td>
									</tr>
								</table>
							</td>
						</tr>
						
						<tr id="trConfrimation" runat=server visible=false>
							<td align="center">
								<table cellspacing="0" cellpadding="0" border="0" width="100%" class="main_text">
									<tr>
										<td height=50 colspan=2 class="val_summary">
											<asp:label id="lblConfirm" runat="server" font-bold="True">This is how your message will appear to the recipient. Please confirm your message:</asp:label>
										</td>
									</tr>
									<tr>		
										<td width="15%" class="main_text_opposite">
											<b><asp:label id="lblToConfirm" runat="server">To:</asp:label></b>
										</td>
										<td>
											<asp:table id="tblToUsersConfirm" runat="server" cssclass="main_text" cellspacing="0" cellpadding="0" border="0">
												<asp:tablerow>
												<asp:tablecell valign="top">
													<asp:hyperlink id="hlToNameConfirm" runat="server" cssclass="main_text_bold" visible="False" font-bold="True"></asp:hyperlink><br><img height="4" src="images/spacer.gif" width="1"><br>
													<asp:hyperlink id="hlToPhotoConfirm" runat="server" cssclass="small_image" visible="False"></asp:hyperlink>
												</asp:tablecell>
												<asp:tablecell valign="top">
													<asp:hyperlink id="hlTo2NameConfirm" runat="server" cssclass="main_text_bold" visible="False" font-bold="True"></asp:hyperlink><br><img height="4" src="images/spacer.gif" width="1"><br>
													<asp:hyperlink id="hlTo2PhotoConfirm" runat="server" cssclass="small_image" visible="False"></asp:hyperlink>
												</asp:tablecell>
												</asp:tablerow>
											</asp:table>
										</td>
									</tr>
									<tr>
										<td class="main_text_opposite"><b><asp:label id="lblSubjectConfirm" runat="server">Subject:</asp:label></b><br/></td>
										<td valign="top"><asp:label id="lblSubjectContentConfirm" runat="server"></asp:label></td>
									</tr>
									<tr>
										<td class="main_text_opposite"><b><asp:label id="lblMessageConfirm" runat="server">Message:</asp:label></b></td>
										<td valign="top"><pre wrap style="WORD-WRAP:break-word"><asp:label id="lblMessageContent" runat="server">Description</asp:label></pre></td>
									</tr>
									<tr>
										<td>&nbsp;</td>
										<td  valign="top"><br>
											<asp:button id="btnPost" runat="server" cssclass="btn" text="Send" width="113px" onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnPost_Click"></asp:button><br><br>
											<asp:button id=btnEdit runat="server" cssclass="btn" text="Edit"  onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnEdit_Click"></asp:button>
											<asp:button id="btnCancelConfirmation" runat="server" cssclass="btn" text="Cancel" causesvalidation="False"  onmouseover="ButtonMouseOver(this);" onmouseout="ButtonMouseOut(this);" onclick="btnCancel_Click"></asp:button>
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
			</td>
			<!-- BEGIN SKYSCRAPER ADVERTISEMENT -->	
			<!--
			<td class="small" width="10">&nbsp;</td>
			<td class="border_adv" vAlign="top" width="203" height="100%">
				<table cellSpacing="1" cellPadding="0" width="100%" border="0">
					<tr>
						<td class="small" width="10">&nbsp;</td>
						<td class="advertisement" width="193"><asp:Literal id="litSkyscraperAdvertisement" runat=server></asp:literal></td>
					</tr>
				</table>
			</td>-->
			<!-- END SKYSCRAPER ADVERTISEMENT -->	
		</tr>
	</table>
</form>
